﻿<Window x:Class="WpfAppCap1_L2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ButtonResources.xaml" />
                <ResourceDictionary Source="GridResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <DockPanel>
        <ToolBar Height="26" Name="toolbar1" DockPanel.Dock="Top" Width="380" HorizontalAlignment="Left" >
            <Button Click="Button_Click" Style="{StaticResource btnstyle}">Bold</Button>
            <Button Click="Button_Click_1">Italic</Button>
            <Slider Name="slider1" Minimum="2" Maximum="72" Width="100" ValueChanged="slider1_ValueChanged" />
            <Image Name="image1" Stretch="Uniform" Source="images/ajax-loader.gif" Height="20" Width="90" VerticalAlignment="Center" />
            <Button Click="Button_Click_2">load text</Button>
        </ToolBar>
        <Grid Name="grid1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="5" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ListBox Name="listbox1" Grid.Column="0" SelectionChanged="listbox1_SelectionChanged">
            </ListBox>
            <GridSplitter Name="gridsplitter1" Margin="0" Width="5"
                          Grid.Column="1" HorizontalAlignment="Left"/>
            <RichTextBox Name="richtxt1" Grid.Column="2" Background="{StaticResource GridBackgroundBrush}"/>
        </Grid>
    </DockPanel>
</Window>
